<!DOCTYPE HTML>
<html lang="zh" xmlns:th="http://www.thymeleaf.org" xmlns:shiro="http://www.pollix.at/thymeleaf/shiro">
<meta charset="utf-8">
<head th:include="include :: header"></head>
<body class="gray-bg">
    <div class="container-div">
     <div class="col-sm-12 select-info">
     <input type="hidden" id="boxguid" th:value="*{boxguid}" name="boxguid">
				<input type="hidden" id="doorguid" th:value="*{doorguid}" name="doorguid">
				<form id="clog-form">
				
					<div class="select-list">
						<ul>
							
							<li>
								手机号或快递单号：<input type="text" name="clogPhone"/>
							</li>
							
							<li>
								<a class="btn btn-primary btn-rounded btn-sm" onclick="$.table.search()"><i class="fa fa-search"></i>&nbsp;搜索</a>
							  
							</li>
						</ul>
					</div>
				</form>
			</div>
		<div class="btn-group hidden-xs" id="toolbar" role="group">
			
		</div>
			
		<div class="col-sm-12 select-info table-striped">
			<table id="bootstrap-table" data-mobile-responsive="true"></table>
		</div>
    </div>
    <div th:include="include :: footer"></div>
    <script th:inline="javascript">
        var editFlag = [[${@permission.hasPermi('ebox:clog:edit')}]];
        var removeFlag = [[${@permission.hasPermi('ebox:clog:remove')}]];
        var prefix = ctx + "ebox/clog"
       
        $(function() {
        	var boxguid=$("#boxguid").val();
        	var doorguid=$("#doorguid").val();
            var options = {
                url: prefix + "/list?boxguid="+boxguid+"&doorguid="+doorguid,
                createUrl: prefix + "/add",
                updateUrl: prefix + "/edit/{id}",
                removeUrl: prefix + "/remove",
                modalName: "快递柜操作日志",
                columns: [
				{
					field : 'clogTime', 
					title : '操作时间', 
					sortable: true 
				},
				{
					field : 'clogType', 
					title : '日志类型' //1投放快递0取快递3回收快递4管理强制打开 5快递测试打开
						, 
						sortable: true
				},
				{
					field : 'userloginname', 
					title : '快递员手机号' 
				},
				{
					field : 'clogConn', 
					title : '操作内容' , 
					sortable: true
				},
				{
					field : 'clogPhone', 
					title : '取件手机号' , 
					sortable: true
				},
				{
					field : 'clogDoorbh', 
					title : '取件租号+编号' 
				}]
            };
            $.table.init(options);
        });
    </script>
</body>
</html>